Merge alpha 0.0.5 to master #54

Merged
niggl merged 292 commits from dev into main 2020-12-23 17:05:35 +00:00
Showing only changes of commit 1b1f8f2b09 - Show all commits

View File

@ -0,0 +1,23 @@
import { Body, ContentType, Controller, Post } from 'routing-controllers';
import { OpenAPI } from 'routing-controllers-openapi';
@Controller('/import')
//@Authorized("IMPORT:read")
export class ImportController {
// private runnerRepository: Repository<Runner>;
/**
* Gets the repository of this controller's model/entity.
*/
constructor() {
//this.runnerRepository = getConnectionManager().get().getRepository(Runner);
}
@Post()
@ContentType("text/csv")
@OpenAPI({ description: "Create new runners based on a csv file" })
async post(@Body() body: any) {
console.log(body)
return body;
}
}