mirror of
https://github.com/unraid/api.git
synced 2026-01-10 10:40:04 -06:00
@@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
const env = process.env.NODE_ENV === 'production';
|
||||
|
||||
const GRAPHQL_PORT = process.env.GRAPHQL_PORT || 5000;
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) {
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
module.exports = function ($injector, glob, get, graphql, graphqlDirective, mergeGraphqlSchemas, ApiManager, log, typeDefs, resolvers, loadState, AppError) {
|
||||
const apiManager = new ApiManager();
|
||||
const { buildSchema } = graphql;
|
||||
const { addDirectiveResolveFunctionsToSchema } = graphqlDirective;
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
module.exports = function (deepmerge, GraphQLJSON, GraphQLLong, GraphQLUUID) {
|
||||
return deepmerge.all([
|
||||
{
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
module.exports = function (path, mergeGraphqlSchemas) {
|
||||
const { join } = path;
|
||||
const { fileLoader, mergeTypes } = mergeGraphqlSchemas;
|
||||
|
||||
12
app/index.js
12
app/index.js
@@ -1,3 +1,15 @@
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
const path = require('path');
|
||||
const am = require('am');
|
||||
const camelcase = require('camelcase');
|
||||
|
||||
@@ -1,4 +1,16 @@
|
||||
/**
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Graphql server.
|
||||
*/
|
||||
module.exports = function ($injector, fs, net, express, config, log, getEndpoints, stoppable) {
|
||||
|
||||
12
index.js
12
index.js
@@ -1 +1,13 @@
|
||||
/*
|
||||
* Copyright 2005-2019, Lime Technology
|
||||
* Copyright 2018-2019, Alexis Tyler
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License version 2,
|
||||
* as published by the Free Software Foundation.
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*/
|
||||
|
||||
require('./app');
|
||||
Reference in New Issue
Block a user