Skip to content
Snippets Groups Projects
Commit d8348c56 authored by Samuli Virtapohja's avatar Samuli Virtapohja
Browse files

appcontroller, links

parent 9085bca7
No related branches found
No related tags found
1 merge request!59Development to master
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
getHello(): string {
return this.appService.getHello();
}
}
...@@ -9,12 +9,14 @@ import { HttpErrorFilter } from './shared/http-error.filter'; ...@@ -9,12 +9,14 @@ import { HttpErrorFilter } from './shared/http-error.filter';
import { LoggingInterceptor } from './shared/logging.interceptor'; import { LoggingInterceptor } from './shared/logging.interceptor';
import { MapMarkerModule } from './mapmarkers/mapmarkers.module'; import { MapMarkerModule } from './mapmarkers/mapmarkers.module';
import { NotificationModule } from './notifications/notifications.module'; import { NotificationModule } from './notifications/notifications.module';
import { GameModule } from './game/game.module';
@Module({ @Module({
imports: [ imports: [
TypeOrmModule.forRoot(), TypeOrmModule.forRoot(),
UserModule, UserModule,
MapMarkerModule, MapMarkerModule,
GameModule,
NotificationModule, NotificationModule,
], ],
controllers: [AppController], controllers: [AppController],
......
import { Entity, Column, PrimaryGeneratedColumn, BeforeInsert, OneToMany } from 'typeorm'; import { Entity, Column, PrimaryGeneratedColumn, BeforeInsert, OneToMany } from 'typeorm';
import * as bcrypt from 'bcryptjs'; import * as bcrypt from 'bcryptjs';
import * as jwt from 'jsonwebtoken'; import * as jwt from 'jsonwebtoken';
import { MapMarkerEntity } from 'src/mapmarkers/mapmarker.entity';
import { Game_PersonEntity } from 'src/game/game.entity'; import { MapMarkerEntity } from '../mapmarkers/mapmarker.entity';
import { Game_PersonEntity } from '../game/game.entity';
@Entity('Person') @Entity('Person')
export class PersonEntity { export class PersonEntity {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment