feat: enhanced title matching, added more metadata types

This commit is contained in:
Michael Green
2023-05-16 00:39:54 +10:00
parent 520380243d
commit 5732c19ca4
15 changed files with 1260 additions and 61 deletions

View File

@@ -39,6 +39,19 @@ namespace gaseous_server.Controllers
}
}
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
public List<Models.Signatures_Games> GetByTosecName(string TosecName = "")
{
if (TosecName.Length > 0)
{
return _GetSignature("signatures_roms.name = @searchstring", TosecName);
} else
{
return null;
}
}
private List<Models.Signatures_Games> _GetSignature(string sqlWhere, string searchString)
{
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);