mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
fix: make index route work correctly
This commit is contained in:
committed by
Rainer Killinger
parent
24e27c1d9e
commit
fa2c9d7a88
@@ -13,7 +13,7 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {SCConfigFile, SCIndexResponse, SCIndexRoute} from '@openstapps/core';
|
||||
import {SCIndexResponse, SCIndexRoute} from '@openstapps/core';
|
||||
import {configFile} from '../common';
|
||||
import {createRoute} from './Route';
|
||||
|
||||
@@ -24,8 +24,10 @@ const indexRouteModel = new SCIndexRoute();
|
||||
*/
|
||||
export const indexRouter = createRoute<SCIndexResponse>(
|
||||
indexRouteModel,
|
||||
async (_request: SCIndexRoute, _app) => {
|
||||
const {internal, ...configObject}: SCConfigFile = configFile;
|
||||
return configObject;
|
||||
async (): Promise<SCIndexResponse> => {
|
||||
return {
|
||||
app: configFile.app,
|
||||
backend: configFile.backend,
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user